<extend name="Public/base" />

<block name="body">
    <div class="main-title">
        <h2>每日分拣计划列表</h2>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th>创建时间</th>
                <th>任务编码</th>
                <th>成品名称</th>
                <th>成品规格</th>
                <th>成品编码</th>
                <th>原包装批次编码</th>
                <th>计划完成数量</th>
                <th>已经完成数量</th>
                <th>完成率</th>
                <th>异常报告</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.createAt|time_format} </td>
                        <td>{$vo.missionnumber}</td>
                        <td>{$vo.product}</td>
                        <td>{$vo.spec}</td>
                        <td>{$vo.productBIN}</td>
                        <td>{$vo.originalbatch}</td>
                        <td>{$vo.plancnt}</td>
                        <td>{$vo.realitycnt}</td>
                        <td>{$vo.missionnumber|get_sort_productcomplete|number_format=###,2}%</td>
                        <td><if condition="$vo.report != '' "><a href="{:U('Sort/missionreport',array('id'=>$vo['id']))}" class="btn btn-danger">异常报告</a>
                            <else /><a href="{:U('Sort/missionreport',array('id'=>$vo['id']))}" class="btn btn-success">未有异常</a>
                        </if>
                        </td>
                        <td><a href="{:U('Sort/completeact',array('missionnumber'=>$vo['missionnumber']))}" class="btn btn-success">出票与入库明细</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Sort/sortmonth')}');
    </script>
</block>
